﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace WorldMapNew
{
    public enum RoadObjType
    {
        E_NONE = 0,
        E_ROAD = 1,
        E_CROSS = 2,
        E_BRIDGE = 3,
    }

    /// <summary>
    /// 地图数据结构
    /// </summary>
    public class WorldRoadData : ScriptableObject
    {
        public List<RoadTypeInfo> roadTypes;
        public List<RoadInfo> roadInfos;
        public WorldRoadData()
        {
            roadTypes = new List<RoadTypeInfo>();
            roadInfos = new List<RoadInfo>();
        }
    }

    [Serializable]
    public class RoadInfo
    {
        public int roadId;
        public RoadObjType objType;
        public string type;
        public Vector3[] points;
        public string roadName;     // 道路名字
        public float r;
    }
    [Serializable]
    public class RoadTypeInfo
    {
        public string type;
        public string matName;
        public float width;
    }
}